package mest.service.hank.impl;

import mest.dao.hank.plan_productjob_saleoutMapper;
import mest.dao.hank.plan_productjob_takematerial_recordMapper;
import mest.entity.plan_productjob_saleout;
import mest.entity.plan_productjob_saleout_record;
import mest.service.hank.PlanProductjobSaleoutService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Classname PlanProductjobSaleoutService
 * @Description TODO
 * @Date 2019/12/8 15:22
 * @Created by 18416
 * @Auther: henk
 */
@Service
public class PlanProductjobSaleoutServiceImpl implements PlanProductjobSaleoutService {


    @Resource
    private plan_productjob_saleoutMapper ppsom;

    @Override
    public int deleteByPrimaryKey(Integer id,String theirDb) {
        return ppsom.deleteByPrimaryKey(id, theirDb);
    }

    @Override
    public int insert(plan_productjob_saleout record,String theirDb) {
        return ppsom.insert(record, theirDb);
    }

    @Override
    public int insertSelective(plan_productjob_saleout record,String theirDb) {
        return ppsom.insertSelective(record, theirDb);
    }

    @Override
    public plan_productjob_saleout selectByPrimaryKey(Integer id,String theirDb) {
        return ppsom.selectByPrimaryKey(id, theirDb);
    }

    @Override
    public int updateByPrimaryKeySelective(plan_productjob_saleout record,String theirDb) {
        return ppsom.updateByPrimaryKeySelective(record, theirDb);
    }

    @Override
    public int updateByPrimaryKey(plan_productjob_saleout record,String theirDb) {
        return ppsom.updateByPrimaryKey(record, theirDb);
    }

    @Override
    public int intsertList(List<plan_productjob_saleout> record,String theirDb) {
        return ppsom.intsertList(record, theirDb);
    }

    @Override
    public List<plan_productjob_saleout> queryBypsId(Integer index, Integer pageSize, Integer psId,String theirDb) {
        return ppsom.queryBypsId((index - 1) * pageSize, pageSize, psId, theirDb);
    }

    @Override
    public List<Map> queryAllModel_byId(Integer index, Integer pageSize, Integer psId,String theirDb) {
        return ppsom.queryAllModel_byId((index - 1) * pageSize, pageSize, psId, theirDb);
    }


    @Override
    public int findCount(Integer psId,String theirDb) {
        return ppsom.findCount(psId, theirDb);
    }

    @Override
    public int updateByone(String theirDb, List<plan_productjob_saleout_record> record) {
        return ppsom.updateByone(theirDb, record);
    }


}
